<template>
	<view class="content">
		<view class="f-c-c" v-for="item,index in dataList.coverimg">
			<image @click="$preImg(dataList.coverimg,index)" :src="item" mode="widthFix"></image>
		</view>
		<view class="title bold  mt20 f36">
			{{dataList.title}}
		</view>
		<view class="themeColor f25">
			{{dataList.content}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:{},
				baseUrl:this.$u.baseUrl
			}
		},
		onLoad(e) {
			this.culturedetails(e.id)
		},
		methods: {
			/* 公司文化详情 */
			async culturedetails(id){
				const res=await this.$u.api.culturedetails({id})
				this.dataList=res.data
				this.dataList.coverimg =this.dataList.coverimg.split('|')
				this.dataList.coverimg=this.dataList.coverimg.map(item=>{
					return this.baseUrl+item
				})
				console.log(this.dataList);
			}
		}
	}
</script>

<style>

.content {
	padding: 30rpx;
}

</style>
